home *** CD-ROM | disk | FTP | other *** search
/ Windows 6-Pak - Disc 6 / Windows 6-Pak (InfoMagic) (Disc 6) (1999).ISO / Network-Management-Tools / SetupNetoscope.exe / NETOSCOPE.EXE / 300 / CPPALERTS < prev    next >
Encoding:
Text File  |  1999-02-10  |  5.3 KB  |  110 lines

  1. INTRODUCTION
  2.  
  3. An alert is triggered whenever Netoscope is unable to connect to the corresponding Internet service and the number of failures reaches the number of attempts set in the item's properties dialog box.
  4.  
  5. This section allows you to define the tasks that will be carried out when alerts occur.  Netoscope can be configured to perform either the same global alert sequence for all items, or a different local sequence for each item.
  6.  
  7.  
  8. COMMANDS
  9.  
  10. Mode:
  11.     - Use the same global settings for all items: Use global settings.
  12.       When this option is selected, global settings are displayed.
  13.     - Use different local settings for each item: Use local setting.
  14.       When this option is selected, the settings of the currently selected item are displayed.
  15.  
  16. Visual Notification:
  17.     - Show the application window: Check this box to show the application window.
  18.     - Show a message box: Check this box to display a message box.
  19.       The message is dismissed automatically when all the connections are restored.
  20.  
  21. Audio Notification:
  22.     - Play this sound file: Play the specified sound file.
  23.     - Repeatedly: Repeat the sound indefinitely.
  24.     - <text field>: Specify a sound file to play, such as tada.wav.
  25.     - <open icon>: Browse for a sound file.
  26.       Several sound files can be found in the "Media" subdirectory of the Windows directory.
  27.     - Test: Play the selected sound.
  28.  
  29.     Before performing this operation, the sound file name is scanned for placeholders.
  30.     Please refer to the related paragraph below for more information on this powerful feature.
  31.  
  32. Batch Notification:
  33.     - Open this file / Execute this command: Targeted command or file.
  34.     - Repeatedly: Repeat the command after each connection failure following an alert.
  35.  
  36.     If you wish to execute several files, create a batch file containing all of the files 
  37.     you want to execute.
  38.  
  39.     - <text field>: Specify the file to open or command to execute.
  40.     - <open icon>: Browse for a program file.
  41.     - Test: Open the file.
  42.  
  43.     Before performing this operation, the command or file name is scanned for placeholders.
  44.     Please refer to the related paragraph below for more information on this powerful feature.
  45.  
  46. E-mail Notification:
  47.     - Send when an alert begins: Send an e-mail message indicating that an alert has occurred.
  48.     - Send when an alert ends: Send an e-mail message indicating that an alert is over.
  49.  
  50.     The e-mail feature can be configured and tested in the E-mail section.
  51.  
  52.  
  53. PLACEHOLDERS
  54.  
  55. There are several notification events in Netoscope that are text based such as the batch file name, sound file name, and e-mail components.  For these events, you can use placeholders to specify where you want certain context-based pieces of information to be placed within the text.  Before the text is used, it is scanned and placeholders are replaced by the appropriate information pertaining to the failed service.
  56.  
  57. The format of a placeholder is the percent symbol (%) followed by one of the letters listed below.
  58.     
  59.         c: Local computer name.
  60.         d: Local date.
  61.         D: UTC date.
  62.         e: Error number.
  63.         E: Error description.
  64.         h: Host name.
  65.         H: Host description.
  66.         p: Port number.
  67.         P: Port description.
  68.         t: Local time.
  69.         T: UTC time.
  70.         s: Status yielding "0" if the service is down or "1" otherwise.
  71.         S: Status yielding "KO" if the service is down or "OK" otherwise.
  72.  
  73.     If a string includes "%" characters for other purposes, you must duplicate them.
  74.     For example, "%h is 100%% down" is translated into "mycompany.com is 100% down".
  75.  
  76. The use of placeholders is illustrated in the examples found in this and the e-mail sections.
  77.  
  78.  
  79. TIPS
  80.  
  81. - In addition to the aforementioned notifications, the application icon located in the system tray will also reflect specific states.
  82. - Set the master and the wave output volumes of your computer to the highest setting in order to hear the sound alerts when you are not near your computer.
  83. - The sound alert is automatically interrupted when all failures have been resolved.
  84.  
  85.  
  86. EXAMPLES
  87.  
  88. (A) An obscure condition is causing your NT web service to stop from time to time, and you want Netoscope to monitor this service and restart it whenever it goes down.  Note that the following instructions apply when Netoscope is installed on the server running the service.
  89.  
  90. 1- Select the targeted service.
  91. 2- Select local settings alert mode.
  92. 3- Check the "Execute this command" control in the batch section.
  93. 4- Enter the following text in the text box:
  94.  
  95.         net start "World Wide Web Publishing Service"
  96.     OR
  97.         net start "w3svc"
  98.  
  99. The "net" command is used to start and stop NT services.  You can look up service names in the NT Services Control Panel applet.  See Windows help for more information about the "net" command.
  100.  
  101. (B) This example illustrates the use of field codes for the purpose of passing the server name as a parameter to the batch process.  The following settings instruct Netoscope to ping services that trigger an alert.
  102.  
  103. 1- Select global settings alert mode.
  104. 2- Check the "Execute this command" control in the batch section.
  105. 3- Enter the following text in the text box:
  106.  
  107.     command /k ping %h
  108.  
  109. NT users: Replace "command" with "cmd".
  110.